#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
    double A, B, C, average;
    cin >> A >> B >> C;
    average = (A * 2 + B * 3 + C * 5) / 10.0;
    cout << "MEDIA = ";
    printf("%.1lf\n", average);
    return 0;
}